package de.wittekind.bundesjugendspiele.server.impl.rmi;

import java.io.IOException;
import java.rmi.server.UnicastRemoteObject;

import de.wittekind.bundesjugendspiele.server.interfaces.Discipline;
import de.wittekind.bundesjugendspiele.server.interfaces.Try;
import de.wittekind.bundesjugendspiele.server.interfaces.Unit;

public class RMITry extends UnicastRemoteObject implements Try {

	private static final long serialVersionUID = -4227580863608785176L;
	private Try try_;

	public RMITry(Try try_) throws IOException {
		this.try_ = try_;
	}

	public int getID() throws IOException {
		return try_.getID();
	}

	public double getValue() throws IOException {
		return try_.getValue();
	}

	public Unit getUnit() throws IOException {
		return try_.getUnit();
	}

	public int hashCode() {
		return try_.hashCode();
	}

	public Discipline getDiscipline() throws IOException {
		return try_.getDiscipline();
	}

	public void setValue(double value) throws IOException {
		try_.setValue(value);
	}

	public void setUnit(Unit unit) throws IOException {
		try_.setUnit(unit);
	}

	public void setDiscipline(Discipline discipline) throws IOException {
		try_.setDiscipline(discipline);
	}

}